Current repositories
RelationVowelSpeed
RsdkRevenueAnalysis
How To GIT
Daily work routine
Setup see below
Changes to code
Basic idea: github contains master version
- use git-bash (app installed locally, opens shell)
- get to local directory (e.g. C:\work\GIT\RsdkRevenueAnalysis):
- go to default dir: cd
- show current dir: pwd
- go to git dir (linux style: / not \ etc)
- show status of local repository:
- always begin with pulling code from git web repository
- work on file
- overwrite changed file locally
- when done update local file(s)
- git add 'file name' (or: git add --all)
- git commit --message " 'description of change' "
- upload to git web repository
View changes
- go to https://github.com/, sign in
- go to repository
- click on comment added when submitting
One time effort to set up
Set up github account (on github repository on the web)
- go to https://github.com/
- enter mail address, "sign up for github"
- follow form:
- email address
- password
- user name
- verify account
- submit launch code
- complete:
- 2-5 members
- student
- collaborative coding
- choose free
Install github client (on local machine)
- download git for windows from https://git-scm.com/downloads
- install with following selections:
- destination: (do not change)
- components: (do not change)
- start menu: (do not change)
- use notepad++ as git's default editor
- initial branche name: let git decide
- use git from gitbash only
- use bundled ssh
- use openSSL
- checkout windows style
- use mintty
- fast-forward or merge
- git credential manager
- enable file system caching
- disable experimental (none selected)
- open git bash
- type git: installation was successful if a list of commands is shown
- in windows explorer, create c:\work\GIT
- in git bash, browse to c:/work/GIT using linux commands (slash instead of backslash!!):
- pwd: show current dir ("print working directory")
- ls: directory content listing (like windows: dir)
- cd: change directory (like windows: cd)
- cd ..: one directory up (with blank!)
- cd NAME: change to directory NAME
Get repository (from github on the web)
- open git bash
- type git clone 'linkToRepository'
Share repository, invite collaborator
- go to https://github.com/, sign in
- open settings
- collaborateurs
- manage access - add people, invite
- invitee receives mail and needs to accept invite